package com.guagua.blog.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import java.util.List;

@Data
@Schema(description = "文章请求")
public class ArticleDTO {
    
    @NotBlank(message = "文章标题不能为空")
    @Schema(description = "文章标题")
    private String title;
    
    @NotBlank(message = "文章内容不能为空")
    @Schema(description = "文章内容")
    private String content;
    
    @Schema(description = "文章摘要")
    private String description;
    
    @Schema(description = "封面图")
    private String coverImage;
    
    @Size(max = 3, message = "最多选择3个标签")
    @Schema(description = "标签ID列表")
    private List<Long> tags;
} 